package com.ttc.ssm.mapper.home;

import com.ttc.ssm.common.MailPage;
import com.ttc.ssm.po.DeliveryActivity;
import com.ttc.ssm.po.InviteActivity;

import java.util.List;
import java.util.Map;

/**
 * Created by Jiarui on 2016/8/17.
 */
public interface HomeInviteActivityMapper {
    public int countRowsNoReadCustomerForMail(MailPage mailPage) throws Exception;
    public int countRowsNoReadCompanyForMail(MailPage mailPage) throws Exception;
    public int countRowsNoReadCustomer(int customer_id) throws Exception;
    public int countRowsNoReadCompany(int company_id) throws Exception;
    public List<InviteActivity> selectActivityCustomer(int customer_id) throws Exception;
    public List<InviteActivity> selectActivityCustomerForPage(MailPage mailPage) throws Exception;
    public List<InviteActivity> selectActivityCompanyForPage(MailPage mailPage) throws Exception;
    public List<InviteActivity> selectActivityCompany(int company_id) throws Exception;
    void insertActivity(InviteActivity inviteActivity) throws Exception;
    public void updateIsRead(Map map) throws Exception;
}
